package edu.gdkm.extendsdemo;

public class Student extends Person{

    public Student() {
    }

    public Student(String id, String name) {

        super(id, name);                //super代表父类的构造方法
    }
    public Student(String id){          //name默认为""
        this(id,"");              //this代表自身的构造方法
    }
    public void say(){
        System.out.println("我是一名学生。");
        super.say();
    }
}
